<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 2020-06-11
 * Time: 09:20
 * 后台管理员关联信息表 - linUser
 */

namespace app\api\model;


use think\model\concern\SoftDelete;

class Admin extends BaseModel
{
    use SoftDelete;

    protected $hidden = [
        'id', 'lin_user_id', 'create_time', 'update_time', 'delete_time',
    ];

    // 关联交通枢纽
    public function adminTraffic()
    {
        return $this->hasMany('adminTraffic','admin_id','id');
    }
}